<!--<h1>Posts#new</h1>
<p>Find me in app/views/posts/new.html.erb</p>-->
<h1>Nuevo post</h1>

<%= form_for @posts do |f| %>
  <% if @posts.errors.any? %>
    <h2>Errores:</h2>       
    <ul>
      <% @posts.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
    </ul>
  <% end %>
  <p>
    <%= f.label :title %><br />
    <%= f.text_field :title %><br />
    <br />
    <%= f.label :content %><br />
    <%= f.text_area :content %>
  </p>
  <p>
    <%= f.submit "Agregar Nuevo Post" %>
  </p>
<% end %>
